package day05.homework;
//利用for循环计算：打印字符*组成的直角三角形
public class Answer3 {
    public static void main(String[] args) {
        int row=6;
        getPicture(row);
    }

    private static void getPicture(int row) {
        for (int i = 0; i <row ; i++) {
            for (int j = 1; j <=2*i+1 ; j++) {
                System.out.print("*");
            }
            System.out.println();
        }
    }
}
